package cn.org.mrliu.ssm.model;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import cn.org.mrliu.ssm.common.model.BaseModel;

public class Employee extends BaseModel {
	private static final long serialVersionUID = 6659803659818049448L;
	private Integer id;
	private String name;
	private String account;
	private String password;
	private Date birthday;
	private Integer departmentId;
	private String phone;
	private String qq;
	private String email;
	private String weixin;
	private String idCard;
	private String domicile; // 户籍
	private String nation; // 民族
	private String domicileAddress;
	private String currentAddress;
	private String contactPhone; // 紧急联系人电话
	private String contactRelation;
	private String contactName;
	private Date hireTime; // 入职时间
	private Date dimissionTime; // 离职时间
	private Integer state; // 状态:1.在职,2.离职
	public Employee() {
	
	}
	public Employee(Integer id) {
		this.id = id;
	}
	public Employee(String name, String account, String password, Date birthday, Integer departmentId, String phone, String qq, String email, String weixin, String idCard, String domicile, String nation, String domicileAddress, String currentAddress, String contactPhone, String contactRelation, String contactName, Date hireTime, Date dimissionTime, Integer state) {
		this.name = name;
		this.account = account;
		this.password = password;
		this.birthday = birthday;
		this.departmentId = departmentId;
		this.phone = phone;
		this.qq = qq;
		this.email = email;
		this.weixin = weixin;
		this.idCard = idCard;
		this.domicile = domicile;
		this.nation = nation;
		this.domicileAddress = domicileAddress;
		this.currentAddress = currentAddress;
		this.contactPhone = contactPhone;
		this.contactRelation = contactRelation;
		this.contactName = contactName;
		this.hireTime = hireTime;
		this.dimissionTime = dimissionTime;
		this.state = state;
	}
	public Employee(Integer id, String name, String account, String password, Date birthday, Integer departmentId, String phone, String qq, String email, String weixin, String idCard, String domicile, String nation, String domicileAddress, String currentAddress, String contactPhone, String contactRelation, String contactName, Date hireTime, Date dimissionTime, Integer state) {
		this.id = id;
		this.name = name;
		this.account = account;
		this.password = password;
		this.birthday = birthday;
		this.departmentId = departmentId;
		this.phone = phone;
		this.qq = qq;
		this.email = email;
		this.weixin = weixin;
		this.idCard = idCard;
		this.domicile = domicile;
		this.nation = nation;
		this.domicileAddress = domicileAddress;
		this.currentAddress = currentAddress;
		this.contactPhone = contactPhone;
		this.contactRelation = contactRelation;
		this.contactName = contactName;
		this.hireTime = hireTime;
		this.dimissionTime = dimissionTime;
		this.state = state;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public Integer getDepartmentId() {
		return departmentId;
	}
	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getWeixin() {
		return weixin;
	}
	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public String getDomicile() {
		return domicile;
	}
	public void setDomicile(String domicile) {
		this.domicile = domicile;
	}
	public String getNation() {
		return nation;
	}
	public void setNation(String nation) {
		this.nation = nation;
	}
	public String getDomicileAddress() {
		return domicileAddress;
	}
	public void setDomicileAddress(String domicileAddress) {
		this.domicileAddress = domicileAddress;
	}
	public String getCurrentAddress() {
		return currentAddress;
	}
	public void setCurrentAddress(String currentAddress) {
		this.currentAddress = currentAddress;
	}
	public String getContactPhone() {
		return contactPhone;
	}
	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}
	public String getContactRelation() {
		return contactRelation;
	}
	public void setContactRelation(String contactRelation) {
		this.contactRelation = contactRelation;
	}
	public String getContactName() {
		return contactName;
	}
	public void setContactName(String contactName) {
		this.contactName = contactName;
	}
	public Date getHireTime() {
		return hireTime;
	}
	public void setHireTime(Date hireTime) {
		this.hireTime = hireTime;
	}
	public Date getDimissionTime() {
		return dimissionTime;
	}
	public void setDimissionTime(Date dimissionTime) {
		this.dimissionTime = dimissionTime;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
	
}
